﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PortalParts/Portal.Master" AutoEventWireup="true" CodeBehind="MemberCost.aspx.cs" Inherits="ZHDJ.Web.Portal.MemberCost" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../Resource/themes/default/css/membercost.css" rel="stylesheet" />
    <script type="text/javascript">
        //汇总党费
        var sumCost = function () {
            var sum = 0.00;
            var months = "";
            $("input[name='ckCost']").each(function () {
                if ($(this).prop("checked") == true) {
                    sum += parseFloat($(this).val());
                    months += $(this).attr("data-month") + ",";
                }
            });
            $("#ctl00_ContentPlaceHolder1_txtpaymoney").val(sum.toFixed(2));
            $("#ctl00_ContentPlaceHolder1_hidMonths").val(months);
        };
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="wrapper">
        <div class="title">欢迎使用党费缴纳系统</div>
        <div id="main" runat="server">
            <div class="contone">
                <h3 style="margin-bottom: 10px;">党费基数：¥ <%=CostBase %></h3>
                <h3 style="margin-bottom: 10px;">请选择要缴纳的月份：</h3>
                <%=MonthHtmlString %>
            </div>
            <div class="conttwo">
                <h3>缴纳党费金额：</h3>
                <div class="jiaoqian">需要交费金额：<input class="money" id="txtpaymoney" type="text" runat="server" value="0" />元/月</div>
            </div>
            <div class="contthree">
                <h3>请选择支付方式：</h3>
                <div class="zhifu">
                    <label><input name="name" type="radio" value="" id="rdoAlipay" runat="server" /></label>
					<label for="zhifu1"><img src="../../Resource/themes/default/images/Party/zhifu1.gif" /></label>
                    <label><input name="name" type="radio" value="" id="rdoWxpay" runat="server" /></label>
					<label for="zhifu2"><img src="../../Resource/themes/default/images/Party/zhifu2.gif" /></label>
                    <%--<label><input name="name" type="radio" value="" id="zhifu3" /></label><label for="zhifu3"><img src="../../Resource/themes/default/images/Party/zhifu3.gif" /></label>--%>
                </div>
                <input id="hidMonths" type="hidden" runat="server" />
                <asp:Button ID="btnPay" runat="server" CssClass="button" Text="确认支付" OnClick="btnPay_Click" />
            </div>
        </div>
        <div class="tips" id="message" runat="server">
			<div>
				<img src="../../Resource/themes/default/images/Party/tips.png" alt="Alternate Text" />
			</div>
            <div style="margin: 40px auto;"><b>提示：</b>您尚未设置党费基数，请先联系管理员进行设置！</div>
            <div style="display: none;">
                <asp:Button ID="Button1" runat="server" CssClass="button" Text="确认" />
            </div>
        </div>
    </div>

</asp:Content>
